package com.sc.study.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统用户dto
 *
 * @author 徐赫阳
 * @date 2022/01/10
 */
@Data
public class SysUserDTO implements Serializable {

    private static final long serialVersionUID = -80776466240581271L;

    @ApiModelProperty(value="主键标识")
    private Integer id;

    @ApiModelProperty(value="创建时间 -- 新增自动填充")
    private Date createTime;

    @ApiModelProperty(value="修改时间 -- 修改时自动填充")
    private Date updateTime;

    @ApiModelProperty(value="创建人id")
    private Integer creatorId;

    @ApiModelProperty(value="修改人id")
    private Integer updaterId;

    @ApiModelProperty(value="用户姓名")
    private String name;

    @ApiModelProperty(value="用户登录账号")
    private String loginName;

    @ApiModelProperty(value="密码")
    private String password;

    @ApiModelProperty(value="头像 -- base64格式")
    private String avatar;

    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @ApiModelProperty(value="生日")
    private Date birthday;

    @ApiModelProperty(value="角色")
    private Integer role;

    @ApiModelProperty(value="用户描述")
    private String userDesc;

    @ApiModelProperty(value="邮箱")
    private String email;

    @ApiModelProperty(value="电话")
    private String phone;

    @ApiModelProperty(value="删除标识")
    private Integer isDel;

    @ApiModelProperty(value="启用状态 字典表COMMON_STATUS_DICT")
    private Integer status;
}
